import { Vaxios }  from './Axios'
import {ContentTypeEnum} from '@/enums/httpEnum'
import { getAppEnvConfig } from '../env'
function createAxios() {
    let env = getAppEnvConfig()
    return new Vaxios({
        baseURL:env.VITE_GLOB_APP_URL,
        headers: { 'Content-Type': ContentTypeEnum.JSON },
    })
}

export const defHttp = createAxios()